home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Herra / TIMWIN.ZIP / DPARTS.CMD < prev    next >
OS/2 REXX Batch file  |  1993-09-22  |  671b  |  27 lines

  1. ;analysis of image 'parts' (consisting of electronic parts)
  2. ;shows:      fast segmentation, using min filter
  3. ;            in 'parts1': classification using CLP-op's
  4. ;expects:    image in a
  5. ;            Output LUT's initialized using 'ini'
  6. ;********************************************
  7. parms
  8.   int windisplay
  9. endparms
  10. int err
  11.  
  12. era 
  13. err = chk lut 2 1
  14. dest p
  15. show p
  16. cstr a
  17. era 1 2 3       ;to keep colour bitplanes free
  18. *windispl h (windisplay+1)
  19. dest q
  20. min a 5          ;segmentation
  21. cstr             ;increase contrast
  22. comp q < 140     ;thresholding
  23. save b           ;store binary image in b
  24. *dparts1 windisplay        ;further processing
  25. stop
  26. 
  27.